package com.hadwinling.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.hadwinling.entity.ShikeTime;
import com.hadwinling.mapper.ShikeTimeMapper;
import com.hadwinling.service.ShikeTimeService;

import java.util.List;

/**
 * @Classname ShikeTimeServiceImpl
 * @Description TODO
 * @Date 2021/7/3 16:02
 * @Created by ${hadwinling}
 */
@Service
public class ShikeTimeServiceImpl implements ShikeTimeService {

    @Resource
    private ShikeTimeMapper shikeTimeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return shikeTimeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ShikeTime record) {
        return shikeTimeMapper.insert(record);
    }

    @Override
    public int insertSelective(ShikeTime record) {
        return shikeTimeMapper.insertSelective(record);
    }

    @Override
    public ShikeTime selectByPrimaryKey(Integer id) {
        return shikeTimeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ShikeTime> selectAllByTimeidAndIndicatorid(Integer timeid, Integer indicatorid) {
        return shikeTimeMapper.selectAllByTimeidAndIndicatorid(timeid, indicatorid);
    }

    @Override
    public List<ShikeTime> selectAllByBurnidAndIndicatorid(Integer burnid, Integer indicatorid) {
        return shikeTimeMapper.selectAllByBurnidAndIndicatorid(burnid, indicatorid);
    }

    @Override
    public List<ShikeTime> selectAllByBurnidBetweenAndBurnidAndIndicatorid(Integer minBurnid, Integer maxBurnid, Integer indicatorid) {
        return shikeTimeMapper.selectAllByBurnidBetweenAndBurnidAndIndicatorid(minBurnid, maxBurnid, indicatorid);
    }

    @Override
    public List<ShikeTime> selectAllByBurnidAndTimeidAndIndicatorid(Integer burnid, Integer timeid, Integer indicatorid) {
        return shikeTimeMapper.selectAllByBurnidAndTimeidAndIndicatorid(burnid, timeid, indicatorid);
    }


    @Override
    public int updateByPrimaryKeySelective(ShikeTime record) {
        return shikeTimeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShikeTime record) {
        return shikeTimeMapper.updateByPrimaryKey(record);
    }

}
